package com.mysteel.product.feign;

import com.mysteel.common.to.SkuHasStockTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * ProjectName: mail
 * ClassName: WareFeignService
 * Description:
 * date: 2021/01/22/022 16:05
 *
 * @author xiaochao
 */
@FeignClient("ware")
public interface WareFeignService {
    /**
     * 检查是否有库存
     * @param skuIds
     * @return
     */
    @ResponseBody
    @PostMapping("/ware/waresku/hasStock")
    List<SkuHasStockTo> getSkuHasStock(@RequestBody List<Long> skuIds);
}
